/**
 * @author banglong
 * @date 2016/8/18.
 */
define(['xFetch'], function (fetch) {

  // 领用单查询
  var getBills = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  // get dept info
  var getOutDTODept = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  // 作废
  var nullifyDrawBill = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  // 发送
  var sendDrawBill = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  // 获取单据
  var getBill = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  // 获取 系统配置
  var getValue = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  // 查询账户余额
  var getAccountBalance = function (param) {
    return fetch('/api/sendPostRequest', param);
  };

  return {
    getBills: getBills,
    getOutDTODept: getOutDTODept,
    nullifyDrawBill: nullifyDrawBill,
    sendDrawBill: sendDrawBill,
    getBill: getBill,
    getValue: getValue,
    getAccountBalance: getAccountBalance
  }
});